package com.lxp.userms.service;

import com.lxp.userms.entity.Question;

import java.util.List;

public interface QuestionService {
    int publishQuestion(Question question);
    List<Question> getAllQuestions();
    List<Question> getQuestionsByUserId(int userId);
    List<Question> getQuestionsByExpertId(int expertId);
    List<Question> getQuestionsByCategoryId(int categoryId);
    Question getQuestionById(int id);
    int updateQuestion(Question question);
    int deleteQuestion(int id);
    int deleteQuestionsByCategoryId(int categoryId);
}